import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/home/Home'
import ShopCar from '@/components/shopcar/ShopCar'
import PinPai from '@/components/pinpai/PinPai'
import FenNei from '@/components/fennei/FenNei'
import TuanGou from '@/components/tuangou/TuanGou'
import Mine from '@/components/mine/Mine'
import DengLu from '@/components/denglu/DengLu'
import ZhuCe from '@/components/zhuce/ZhuCe'
import XiangQing from '@/components/xiangqing/XiangQing'
import PingJia from '@/components/pingjia/PingJia'
import ChengJiao from '@/components/chengjiao/ChengJiao'
Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },{
      path: '/shopcar',
      name: 'shopcar',
      component: ShopCar
    },{
      path: '/home',
      name: 'index',
      component: Home
    },{
      path: '/pinpai',
      name: 'pinpai',
      component: PinPai
    },{
      path: '/fennei',
      name: 'fennei',
      component: FenNei
    },{
      path: '/tuangou',
      name: 'tuangou',
      component: TuanGou
    },{
      path: '/mine',
      name: 'mine',
      component: Mine
    },{
      path: '/denglu',
      name: 'denglu',
      component: DengLu
    },{
      path: '/zhuce',
      name: 'zhuce',
      component: ZhuCe
    },{
      path: '/xiangqing',
      name: 'xiangqing',
      component: XiangQing
    },
    {
      path: '/pingjia',
      name: 'pingjia',
      component: PingJia
    },
    {
      path: '/chengjiao',
      name: 'chengjiao',
      component: ChengJiao
    },
  ]
})
